//
//  YKClientDrugPriceModelV2ItemCell.m
//  YunKang
//
//  Created by leoking870 on 2018/6/13.
//  Copyright © 2018年 leoking870. All rights reserved.
//

#import "YKClientDrugPriceModelV2ItemCell.h"

@interface YKClientDrugPriceModelV2ItemCell ()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *numberLabel;
@property (weak, nonatomic) IBOutlet UILabel *typeLabel;
@property (weak, nonatomic) IBOutlet UILabel *descLabel;
@property (weak, nonatomic) IBOutlet UILabel *dateLabel;
@end

@implementation YKClientDrugPriceModelV2ItemCell
@dynamic tableViewItem;
- (void)cellWillAppear {
    [super cellWillAppear];
    self.nameLabel.text = self.tableViewItem.model.C_NAME;
    self.numberLabel.text = self.tableViewItem.model.APPLYORDERODE;
    self.typeLabel.text = self.tableViewItem.model.ST_NAME;
    self.descLabel.text = self.tableViewItem.model.APPLYDATE;
    self.dateLabel.text = self.tableViewItem.model.submitStatusString;
    
    [self.contentView.subviews enumerateObjectsUsingBlock:^(__kindof UIView * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
        if ([obj isKindOfClass:[UILabel class]]) {
            UILabel *label = (UILabel *)obj;
            label.textColor = [UIColor blackColor];
        }
    }];
}
@end
